const express = require('express')
const { login, register, deleteUser } = require('../controller/user')

const router = express.Router()

// 用户登录
router.post('/login', login)

// 用户注册
router.post('/register', register)

// 删除用户
router.delete('/:_id', deleteUser)

module.exports = router